package com.edu.dao.impl;

import com.edu.bean.MyDataSource;
import com.edu.dao.UserDao;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

//@Repository
public class UserDaoImpl2 implements UserDao {

    @Resource
    public MyDataSource myDataSource;

    public void selectUser() {
        System.out.println("执行了UserDaoImpl2");
        myDataSource.getConnection();
    }
}
